package nju.eai.seller.util;
import java.sql.*;


public class DBConMngr {

	private static Connection con;
	
	public static synchronized Connection createConnection() throws ClassNotFoundException, SQLException{
		if(con == null){
			Class.forName(Constants.driverStr);
			con = DriverManager.getConnection(Constants.URL,
					Constants.username, Constants.password);
			
			return con;
		}else
			return con;
	}


}
